package com.net.xpay.common.dao.stat;

import com.net.xpay.common.domain.stat.PartnerUserRealTimeStat;
import com.net.xpay.common.model.PartnerUserSumModel;
import com.net.xpay.common.model.search.PartnerUserRealTimeStatSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface PartnerUserRealTimeStatMapper extends PagedMapper<Long, PartnerUserRealTimeStat> {
    List<PartnerUserRealTimeStat> search(@Param("searchModel") PartnerUserRealTimeStatSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel")PartnerUserRealTimeStatSearchModel searchModel);

    PartnerUserSumModel aggSum(@Param("searchModel") PartnerUserRealTimeStatSearchModel searchModel);
}
